﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using Butterfly.Library.Utilities;
using System.Collections.Generic;
using Butterfly.Library.Helper;

namespace MyPay.Library.Providers
{
    public class SqlDataProvider: DataProvider
    {
        private string _strConn;
        public string ConnectionString
        {
            get { return this._strConn; }
            set { this._strConn = value; }
        }
        public SqlDataProvider(string strConn)
        {
            this.ConnectionString = strConn;
        }
        
        public override string GetAccount(string bankcode)
        {
            return (string)SqlHelper.ExecuteScalar(this.ConnectionString, "MP_MyPay_GetAccount", bankcode);
        }
        
    }
}
